<!--#include file="CheckSession.asp"-->
<!--#include file="../inc/PublicFun.Asp"-->
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
    <meta http-equiv="Content-Type" content="text/html; charset=gb2312"/>
    <title>��̨����</title>
    <link href="css/style.css" rel="stylesheet" type="text/css"/>
</head>
<body>
<%

strAction = Request("action")
	strProductId = Request("ProductId")
		
	if strAction = "s"  then
		if (strProductId = "") then
			call insert(request . form, "AABB")
			Response . Write("<script language='javascript'>alert('��ӳɹ���');window.location.href='Admin_ProductAdd.asp'</script>")
		else
			call data(request . form, "AABB", "id=" & strProductId & "")
			Response . Write("<script language='javascript'>alert('�޸ĳɹ���');window.location.href='Admin_ProductAdd.asp'</script>")
		end if
end if

If strProductId <> "" Then
		Set Rs = Server . CreateObject("Adodb.RecordSet")
		Sql = "Select * from AABB where Id=" & strProductId & ""
		Rs . open Sql,Conn,1,3
			If Not(Rs . Eof And Rs . Eof) then
				A1 = rs("A1")
				A2 = rs("A2")
				A3 = rs("A3")
				A4 = rs("A4")
				A5 = rs("A5")
				A6 = rs("A6")
				A7 = rs("A7")
				A8 = rs("A8")
				A9 = rs("A9")
				A10 = rs("A10")
				A11 = rs("A11")
			End If
    Rs . Close()
Set Rs = Nothing
	End If

%>
<table width="100%" border="0" cellpadding="0" cellspacing="0">
    <tr>
        <td height="50" align="center" class="title">�����Ϣ</td>
    </tr>
</table>
<div>&nbsp;</div>
<table width="100%" border="1" align="center" cellpadding="5" cellspacing="0" style="border-collapse:collapse">
    <form action="?action=s&ProductId=<%= strProductId %>" method="post" name="form1">
        <tr>
            <td width="150" align="right" nowrap>��Ʒ��ƣ�</td>
            <td nowrap><input name="A1" id="A1" class="inputtext" value="<%= A1 %>" type="text" style="width:500px">
            </td>
        </tr>
        <tr>
            <td width="150" align="right" nowrap>��ƷͼƬ��</td>
            <td nowrap><input name="A10" class="inputtext" value="<%= A10 %>" type="text" style="width:500px">
                &nbsp;
                <input name="button" onClick="window.open('update.asp?textname=A10','','width=500,height=500,status=1')"
                       style="width:40px; text-align:center" type="button" class="button" value="��ȡ"></td>
        </tr>
        <tr>
            <td width="150" align="right" nowrap>��Ʒ���</td>
            <td nowrap><input name="A2" class="inputtext" value="<%= A2 %>" type="text" style="width:500px"></td>
        </tr>
        <tr>
            <td align="right" nowrap>��Ʒ�ͺţ�</td>
            <td valign="top" nowrap><input name="A3" class="inputtext" value="<%= A3 %>" type="text"
                                           style="width:500px">
            </td>
        </tr>
        <tr>
            <td align="right" nowrap>������</td>
            <td valign="top" nowrap><input name="A4" class="inputtext" value="<%= A4 %>" type="text"
                                           style="width:500px">
            </td>
        </tr>
        <tr>
            <td align="right" nowrap>�Żݼ۸�</td>
            <td valign="top" nowrap><input name="A5" class="inputtext" value="<%= A5 %>" type="text"
                                           style="width:500px">
            </td>
        </tr>
        <tr>
            <td align="right" nowrap>�г��۸�</td>
            <td valign="top" nowrap><input name="A11" class="inputtext" value="<%= A11 %>" type="text"
                                           style="width:500px">
            </td>
        </tr>
        <tr>
            <td align="right" nowrap>��λ���ȣ�</td>
            <td valign="top" nowrap><input name="A6" class="inputtext" value="<%= A6 %>" type="text"
                                           style="width:500px">
            </td>
        </tr>
        <tr>
            <td align="right" nowrap>�������أ�</td>
            <td valign="top" nowrap><input name="A7" class="inputtext" value="<%= A7 %>" type="text"
                                           style="width:500px">
            </td>
        </tr>
        <tr>
            <td align="right" nowrap>���Ų�Ʒ��</td>
            <td valign="top" nowrap><input type="radio" name="A8"
                                           value="1" <% if A8 = 1 then response . Write("checked") end if%>>
                ��
                <input type="radio" name="A8" value="0" <% if A8 = 0 then response . Write("checked") end if%>>
                ��
            </td>
        </tr>
        <tr>
            <td align="right" nowrap>��Ϣ���ݣ�</td>
            <td nowrap><textarea id="A9" name="A9" style="height:300px;display:none"><%= A9 %></textarea>
                <iframe id="Iframe1" src="../webedit/eWebEditor.asp?id=A9&style=standard" frameborder="0"
                        scrolling="no" height="300px" width="650px"></iframe>
            </td>
        </tr>
        <tr>
            <td>&nbsp;</td>
            <td><input type="hidden" value="<%= now() %>" name="Times" id="Times">
                <input name="submit1" type="submit" class="button" value="ȷ���ύ">
                &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
                <input name="reset" type="reset" class="button" value="ȡ����д"></td>
        </tr>
    </form>
</table>
</body>
</html>
<%
conn . close()
	set conn = nothing
%>
